package com.csun.cmny.provider.model.constant;

import com.csun.cmny.provider.model.entity.AppSleepDurationEntity;
import com.csun.cmny.provider.model.entity.AppSleepTimeEntity;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public class OldmanAppConstant {

    //翻身间隔大于10分钟为浅睡状态，小于10分钟为清醒状态
    public static final int LIGHT_SLEEP_STANRDARD = 10;

    //翻身间隔大于30分钟为深睡状态
    public static final int DEEP_SLEEP_STANDARD = 30;

    //清醒状态
    public static final int AWAKE_STATUS = 1;

    //浅睡状态
    public static final int LIGHT_SLEEP_STATUS = 2;

    //深睡状态
    public static final int DEEP_SLEEP_STATUS = 3;

    //最佳睡眠时长 单位：分钟
    public static final double BEST_SLEEP_TIME = 480;

    //最佳起床时间
    public static final String BEST_GET_BED_TIME = "06:00:00";

    //最佳入睡时间
    public static final String BEST_FALL_ASLEEP_TIME = "22:00:00";

    //默认最大心跳阈值
    public static final int ORIGINAL_MAX_HEARTBEAT_THRESHOLD = 90;

    //默认最小心跳阈值
    public static final int ORIGINAL_MIN_HEARTBEAT_THRESHOLD = 60;

    //默认最小呼吸阈值
    public static final int ORIGINAL_MIN_BREATH_THRESHOLD = 12;

    //默认最大呼吸阈值
    public static final int ORIGINAL_MAX_BREATH_THRESHOLD = 25;

    //默认翻身次数阈值
    public static final int ACTION_TIMES_THRESHOLD = 25;

    public static final List<AppSleepTimeEntity> OLDMAN_SLEEP_TIME_CONSTANT = new LinkedList(){
        {
            add(new AppSleepTimeEntity("20:00",15));
            add(new AppSleepTimeEntity("21:00",36));
            add(new AppSleepTimeEntity("22:00",31));
            add(new AppSleepTimeEntity("23:00",18));
            add(new AppSleepTimeEntity("00:00以后",10));
        }
    };

    public static final List<AppSleepDurationEntity> OLDMAN_SLEEP_DURATION_CONSTANT = new LinkedList(){
        {
            add(new AppSleepDurationEntity("10小时",13));
            add(new AppSleepDurationEntity("9小时",32));
            add(new AppSleepDurationEntity("8小时",35));
            add(new AppSleepDurationEntity("7小时",20));
            add(new AppSleepDurationEntity("6小时以下",7));
        }
    };
}
